/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.helwen.restaurantbooking.bo.boimpl;

import com.helwen.restaurantbooking.bo.IBookingBo;
import com.helwen.restaurantbooking.datalayer.dao.IBookingDao;
import com.helwen.restaurantbooking.datalayer.dao.ITableDao;
import com.helwen.restaurantbooking.datalayer.entities.TblBooking;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Nghiata
 */
@Service("bookingBo")
public class BookingBoImpl implements IBookingBo {
    @Autowired
    private IBookingDao bookingDao;
    @Autowired
    private ITableDao tableDao;

    public IBookingDao getBookingDao() {
        return bookingDao;
    }

    public void setBookingDao(IBookingDao bookingDao) {
        this.bookingDao = bookingDao;
    }

   

    public List<TblBooking> getAllBookingInfo() {
        return bookingDao.getAllBookingInfo();
    }

    public List<TblBooking> getBookingByTable(Integer tableNumber) {
        return null;
    }

    public TblBooking getBookingActiveOnTable(Integer tableNumber) {
       return null;
    }

    public void saveOrUpdate(TblBooking tblBooking) {
        bookingDao.saveOrUpdate(tblBooking);
    }

   
}
